#ifndef __COMMUNICATE_PROTOCOL_PHONE_H__
#define __COMMUNICATE_PROTOCOL_PHONE_H__

#import "protocol.h"
#import "sysParam.h"

typedef uint32_t (*L2_command_key_resolove)(uint8_t command, uint8_t key,const uint8_t * value ,uint16_t length, void* p_context);
uint32_t L2_frame_resolve_from_band(uint8_t * data, uint16_t length,RECEIVE_STATE * resolve_state);


typedef struct  
{
	uint8_t nID;
	uint8_t flag;
	uint16_t minutes;
}alarm_setting_t;

void set_local_time(uint32_t second, BLECallBack callback);

void alarm_get(BLECallBack callback);

void get_device_battery(BLECallBack callback);

void alarm_setting(alarm_setting_t * alarm, uint8_t alarm_count, BLECallBack callback);

void userinfo_setting(user_info_t * p_info, BLECallBack callback);

void steptarget_setting(uint32_t uSteps, BLECallBack callback);

void request_sport_data(uint8_t request, BLECallBack callback);

void ota_control(uint8_t cmd, BLECallBack callback);
void ota_control_2(uint8_t cmd, uint32_t version, BLECallBack callback);
void ota_send(uint8_t * pBuffer, uint16_t len, BLECallBack callback);
void ota_send_over(uint16_t crc, uint32_t file_len, BLECallBack callback);
void send_notification(uint8_t command, uint8_t evt_flag, uint8_t category_id, uint8_t category_count, uint32_t notificationUID, BLECallBack callback);


#endif